package net.ericaro.neojavagen.expressions;

/**
 * <b>RelationalExpression</b> ::= <{@link net .ericaro .neojavagen .expressions .ShiftExpression ShiftExpression}> <
 * {@link net .ericaro .neojavagen .expressions .RelationalExpressionRest RelationalExpressionRest}>?
 * 
 * @author eric@ericaro.net
 */
public class RelationalExpression extends net.ericaro.neojavagen.JavaPartComposition {
	private net.ericaro.neojavagen.expressions.RelationalExpressionRest relationalExpressionRest;

	private net.ericaro.neojavagen.expressions.ShiftExpression shiftExpression;

	public RelationalExpression(net.ericaro.neojavagen.expressions.ShiftExpression shiftExpression) {
		this.shiftExpression = shiftExpression;
		this.relationalExpressionRest = null;
	}

	public RelationalExpression(net.ericaro.neojavagen.expressions.ShiftExpression shiftExpression, net.ericaro.neojavagen.expressions.RelationalExpressionRest relationalExpressionRest) {
		super();
		this.shiftExpression = shiftExpression;
		this.relationalExpressionRest = relationalExpressionRest;
	}

	public net.ericaro.neojavagen.expressions.RelationalExpressionRest getRelationalExpressionRest() {
		return relationalExpressionRest;
	}

	public net.ericaro.neojavagen.expressions.ShiftExpression getShiftExpression() {
		return shiftExpression;
	}

	public void setRelationalExpressionRest(net.ericaro.neojavagen.expressions.RelationalExpressionRest relationalExpressionRest) {
		this.relationalExpressionRest = relationalExpressionRest;
	}

	public void setShiftExpression(net.ericaro.neojavagen.expressions.ShiftExpression shiftExpression) {
		this.shiftExpression = shiftExpression;
	}

	@Override
	public java.lang.String toString() {
		return print(shiftExpression, relationalExpressionRest);
	}
}
